<?php
	class static_function {
		static function getStarRating($value){
			$stars = "";
			$value = (float)$value;
			$floor = floor($value);
			
			for($i=1; $i<=$floor; $i++){
				$stars .= '<img src="images/star.png" alt="'.$value.' stars" />';
			}
			
			if(($value-$floor) == 0.5){
				$stars .= '<img src="images/star-half.png" alt="'.$value.' stars" />';
			}
			
			return $stars;
		}
	}
?>